#ifndef _protocol_camera_h_
#define _protocol_camera_h_

#include "protocol.h"

#define   	camera_group		(0)
#define		camera_slaveNodes	(4)
typedef struct{
	uint8_t runstatus;
	uint8_t workstatus;
	uint8_t sq_distance;
	uint8_t angle;
}ad_result, *pad_result;

extern  ad_result	camera_result[]; 


extern 	uint8_t camera_process(pmesg_prot mesg);
extern 	uint8_t camera_rxFunc(void);
extern  uint8_t camera_txFunc(void);
extern  void 	camera_rxFunc_callback(uint32_t id, uint8_t buffer[], uint8_t len);
/*
CMDS
*/
//extern void 	queue_insert(pmesg_prot pmesg);
extern uint8_t camera_datamode_setting(uint8_t control, uint16_t period);
extern uint8_t camera_workstatus_setting(uint8_t control);
extern uint8_t camera_runstatus_setting(uint8_t control);
extern uint8_t camera_runstatus_check(void);
extern void    camera_lowTxfunc_Register(FunType_bufferTx txFunc);
extern void    camera_init(FunType_bufferTx txFunc);
extern uint8_t camera_task(void);
extern uint8_t camera_interfaceTest(void);

#endif
